<%--
  Created by IntelliJ IDEA.
  User: 86187
  Date: 2021/10/21
  Time: 10:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="resource/bootstrap4/css/bootstrap.css">
    <script src="resource/js/jquery-3.2.1.js"></script>
    <script src="resource/bootstrap-treeview/js/bootstrap-treeview.js"></script>
    <script src="resource/bootstrap4/js/bootstrap.js"></script>
    <script src="resource/My97DatePicker/WdatePicker.js"></script>
    <title>首页</title>
    <script>
        $(function (){
            $.post(
                "/getTree",
                function (obj){
                    $("#list-tab").treeview({
                        data:obj,
                        //levels: 8,
                        onNodeSelected: function (a,b){
                            if(b.href!=null && b.href!=''){
                                $("#nav-tabContent").load(b.href);
                            }
                        }
                    })
                }
            )
        })
    </script>
</head>
<body>
<div class="row">
    <!--左侧部分-->
    <div class="col-3">
        <div class="list-group" id="list-tab" >
        </div>
    </div>

    <!--右侧部分-->
    <div class="col-9">
        <div class="tab-content" id="nav-tabContent">
        </div>
    </div>
</div>

</body>
</html>